package org.jeecgframework.web.material.service;
import org.jeecgframework.web.material.entity.OrderInfoEntity;
import org.jeecgframework.web.material.entity.OrderInstallEntity;
import org.jeecgframework.web.material.entity.OrderMeasureEntity;
import org.jeecgframework.web.material.entity.OrderProductEntity;

import java.util.List;

import org.jeecgframework.core.common.service.CommonService;

import java.io.Serializable;

public interface OrderInfoServiceI extends CommonService{
	
 	public <T> void delete(T entity);
	/**
	 * 添加一对多
	 * 
	 */
	public void addMain(OrderInfoEntity orderInfo,
	        List<OrderProductEntity> orderProductList) ;
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(OrderInfoEntity orderInfo,
	        List<OrderProductEntity> orderProductList);
	public void delMain (OrderInfoEntity orderInfo);
	
	
	/**
	 * 订单信息提交.
	 * */
	public void isSubmit(OrderInfoEntity orderInfo);
	
	
	/**
	 * 提交人是否存在.
	 * */
	public boolean isExist(OrderInfoEntity orderInfo);
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMeasure(OrderInfoEntity orderInfo,
	        List<OrderMeasureEntity> orderMeasureList);
	
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateInstall(OrderInfoEntity orderInfo,
	        List<OrderInstallEntity> orderInstallList);
	
	
	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(OrderInfoEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(OrderInfoEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(OrderInfoEntity t);
}
